package cn.tedu.pic.controller

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.web.multipart.MultipartFile
import cn.tedu.pic.service.PicService

@RestController
class PicController {
  @Autowired
  private var picService: PicService = _
  //处理图片上传的路径请求
  @RequestMapping(Array("pic/upload"))
  def picUpload(pic: MultipartFile) = picService picUpload pic
}
